function initialize() {
  var map;
  var current_pos_marker;
  var myLatLng = new google.maps.LatLng(-25.363882,131.044922);
  var myOptions = {
    zoom: 4,
    center: myLatLng,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    disableDefaultUI: true
  }

  map = new google.maps.Map($("#map_canvas")[0], myOptions);
  
  current_pos_marker = new google.maps.Marker({
    position: myLatLng,
    map: map,
    title: "You Are Here",
    draggable: true
  });

  $.ajaxSetup({cache: false});

  $("#get_form").submit(function() {
    $.get("app/fetch_listings.php", $("#get_form").serialize(), function(response) {
      $("#search_results").html(response);
    });
    return false;
  });

  $("#post_form").submit(function() {
    latlng = "&latitude=" + myLatLng.lat() + "&longitude=" + myLatLng.lng();
    $.post("app/make_listing.php", $("#post_form").serialize() + latlng, function(response) {
      $("#my_posts").html(response);
    });
    return false;
  });
}
